Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 6 - Configuration Management / Configuration Management Reference
Constants and Data Types


The Gestalt Selector and Response Bits

You can test whether Open Transport and its various parts are available by using the Gestalt function with the 'otan' selector. The Gestalt function returns information by setting or clearing bits in the response parameter. The bits currently used are defined by constants, shown along with the Open Transport selector in the following enumeration:

enum {
   gestaltOpenTpt                   = 'otan',
   gestaltOpenTptPresent            = 0x00000001,
   gestaltOpenTptLoaded             = 0x00000002,
   gestaltOpenTptAppleTalkPresent   = 0x00000004,
   gestaltOpenTptAppleTalkLoaded    = 0x00000008,
   gestaltOpenTptTCPPresent         = 0x00000010,
   gestaltOpenTptTCPLoaded          = 0x00000020,
   gestaltOpenTptIPXSPXPresent      = 0x00000040,
   gestaltOpenTptIPXSPXLoaded       = 0x00000080
};
For more information about the Gestalt function, see Inside Macintosh: Operating System Utilities.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996